import { Result, Button } from 'antd';
import { useNavigate } from 'react-router-dom';

function PageEntry() {
  const nav = useNavigate();

  return <Result
    status="404"
    title="404"
    subTitle="暂无相关内容"
    extra={<Button type="primary" onClick={() => nav('/')}>返回首页</Button>}
  />
}

export default PageEntry;